package com.zch.socket.aio.client2;

import com.zch.socket.common.model.RequestModel;

import java.nio.channels.CompletionHandler;

/**
 * 客户端建立连接的处理器
 */
public class ClientConnectHandler implements CompletionHandler {
    @Override
    public void completed(Object result, Object attachment) {

        System.out.println("祝贺客户端连接成功");
    }

    @Override
    public void failed(Throwable exc, Object attachment) {
       System.out.println("客户端连接异常");
       exc.printStackTrace();
    }
}
